package cc.mrbird.febs.common.domain;

import lombok.Data;

/**
 * Created by lijian on 2017/6/27.
 */
@Data
public class PageParam {

    private Integer page;

    private Integer size;

    private String sort;

    public PageParam() {
    }

    public PageParam(Integer page, Integer size) {
        this.page = page;
        this.size = size;
    }

    public PageParam(Integer page, Integer size, String sort) {
        this.page = page;
        this.size = size;
        this.sort = sort;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public enum Direction{
        ASC("ASC"),DESC("DESC");
        private String value;
        Direction(String value){
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }
}
